package com.pb.wkflow.api.exception;

import lombok.Getter;

/**
 * 审批异常类
 * @author 苗益辉
 * @date 2022/11/22 14:27
 */
public class ApprovalException extends RuntimeException{

    @Getter
    private String errorCode = "500";

    @Getter
    private String errorMsg;

    public ApprovalException(String message) {
        super(message);
    }

    public ApprovalException(String code, String message) {
        super(message);
        this.errorCode = code;
    }

    public ApprovalException(String code, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = code;
    }

    public ApprovalException(String message, Throwable cause) {
        super(message, cause);
    }

}
